package cn.layfolk.seckill.mapper;

import cn.layfolk.seckill.domain.TSeckillGoods;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ${author}
 * @since 2021-01-10
 */
public interface TSeckillGoodsMapper extends BaseMapper<TSeckillGoods> {

    @Update("update t_seckill_goods set stock_count = stock_count + 1 where id = #{seckillId}")
    Integer incrStockCount(Long seckillId);
}
